@extends('Admin.layout.layout')
@section('title','论坛管理')
@section('home','帖子管理')
@section('weizhi','帖子列表')
@section('con')
<table class="table table-striped table-advance table-hover">
	<tbody>
		<tr>
			<th>编号</th>
			<th>标题</th>
			<th>发帖人</th>
			<th>帖子类别</th>
			<th>发帖时间</th>
			<th>阅读|回帖</th>
			<th>加精|置顶</th>
			<th>操作</th>
		</tr>
		<?php $count=1; ?>
		@foreach($datas as $key=>$value)
		<tr>
			<td>{{$count++}}</td>
			<td>{{$value->title}}</td>
			<td>{{$value->uid}}</td>
			<td>{{$value->tid}}</td>
			<td>{{date('Y-m-d h:i:s',$value->ctime)}}</td>
			<td>{{$value->readtimes}}|{{$value->retimes}}</td>
			<td>
				<a class="btn btn-info btn-sm" href="" title="Bootstrap 3 themes generator">加精</a>
				
				<a class="btn btn-info btn-sm" href="" title="Bootstrap 3 themes generator">置顶</a>

			</td>
			<td>
				<div class="btn-group">
					<a class="btn btn-primary" href="{{url('/admin/bbspost/scan',['id'=>$value->id])}}">查看</a>
					<a class="btn btn-success" href="{{url('/admin/bbspost/scan',['id'=>$value->id])}}">修改</a>
					<a class="btn btn-danger" href="{{url('/admin/bbspost/delete',['id'=>$value->id])}}">删除</a>
				</div>
			</td>
		</tr>
		@endforeach
		
		<!-- <tr>
			<td colspan='5'>
				<p>备注:位置栏中的 '1' 表示板块封面，'2' 表示轮播图 。</p>
			</td>
			<td>
				<div class="btn-group">
					<a class="btn btn-primary" style="width:100px;margin-left:30px;" href="{{url('/admin/config/add')}}">添加</a>
				</div>
			</td>
		</tr>  -->                                                          
	</tbody>
</table>
{!! $datas->render() !!}   
@endsection